{include file="index/header" /}


<div class="row">
    <div class="col-xs-12 col-sm-12 col-md-9">
        <div class="page-header">
            <h2>小额赞赏<small style="font-size: 12px;"> 赞赏总额：<span style="color: #D8582B;font-size: 12px;">{$total_amount_count}</span>
            </small>


            </h2>


        </div>

        <blockquote style="font-size: 12px;border-left: 5px solid #009688;">


            <p>赞赏者将会被展示在一份充满友爱的名册中：
                <a href="tips">赞赏者名单</a>
            </p>
            <footer>Someone famous in <cite title="Source Title">Source Title</cite></footer>
        </blockquote>


        <div class="tabbable" id="tabs-323015">
            <ul class="nav nav-tabs">
                <li class="active">
                    <a href="#panel-1008601" data-toggle="tab">赞赏</a>
                </li>
                <li class="#panel-862765">
                    <a href="#panel-862765" data-toggle="tab">图文</a>
                </li>
                <li>
                    <a href="#panel-401557" data-toggle="tab">列表</a>
                </li>

            </ul>
            <div class="tab-content">


                <div class="tab-pane active" id="panel-1008601">
                    <br>


                    <form action="{:url('index/alipay/index')}" method=post class="form-horizontal">
                           <div class="form-group" >
    <!-- <label for="exampleInputName2">留言标题title:</label> -->
    <input type="hidden" class="form-control"  value="37" name="type" value="index/member/money" placeholder="支付标题" maxlength="100">

      </div>
                        <div class="form-group">
                            <label for="inputEmail3" class="col-sm-2 control-label" style="color: #777;">选择金额</label>
                            <div class="col-sm-10">


                                <select class="form-control" id="WIDtotal_amount" name="price">
                                    <option value="0.01" selected="selected">￥ 0.01</option>
                                    <option value="1">￥ 1</option>
                                    <option value="9">￥ 9</option>
                                    <option value="19">￥ 19</option>
                                    <option value="29">￥ 29</option>
                                    <option value="39">￥ 39</option>
                                    <option value="49">￥ 49</option>
                                    <option value="59">￥ 59</option>
                                    <option value="69">￥ 69</option>

                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="inputPassword3" class="col-sm-2 control-label" style="color: #777;">赞赏留言</label>
                            <div class="col-sm-10">
                                <textarea class="form-control" rows="3" name="title" id="WIDsubject" value=""
                                          placeholder="留言内容(选填)"></textarea>

                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">


                                <button class="btn btn-danger" type="submit" style="    margin-bottom:  5px;"
                                        name="code65">
                                    开始打赏
                                </button>

                            </div>
                        </div>


                    </form>


                </div>


                <div class="tab-pane" id="panel-862765">
                    <div class="row" style="padding: 15px">


                        {volist name='$list' id='user' key="k"}
                        <div class="col-xs-12 col-sm-6 col-md-4 " style="padding: 0px;">


                            <div class="media">
                                <div class="media-left">
                                    <a href="#">
                                        <img class="media-object img-circle"
                                             src="__STATIC__/images/user/user ({:rand(1,25)}).jpg"
                                             data-holder-rendered="true" style="width: 64px; height: 64px;">
                                    </a>
                                </div>
                                <div class="media-body">
                                    <small><a href="{:url('index/member/home', ['user_id' => $user.id])}">{$user.user_id|substr=0,3}****{$user.user_id|substr=7,4}</a>
                                        <span style="color: #D8582B;font-weight: bold;">￥{$user.total_amount}</span></small>
                                    <h5><small>赞赏时间：<span
                                            style="color: #D8582B;font-weight: bold;">{$user.create_time}</span></small>
                                    </h5>
                                    <h5><small><span style="color: #D8582B;font-weight: bold;"></span>{:mb_substr($user.subject,
                                        0, 20, 'utf-8')}</small></h5>
                                </div>
                            </div>


                            <hr>


                        </div>


                        {/volist}


                    </div>
                    {$list->render()}
                </div>
                <div class="tab-pane" id="panel-401557">
                    <div class="table-responsive">
                        <br>
                        <table class="table table-bordered  table-striped table-hover">
                            <thead>
                            <tr>
                                <th> 赞赏者</th>
                                <th>金额</th>
                                <th>留言</th>
                                <th> 赞赏时间</th>
                            </tr>
                            </thead>

                            <tbody>
                            {volist name='list' id='user' key="k"}

                            <tr>
                                <td>
                                    <img class="img-rounded" src="__STATIC__/images/user/user ({:rand(1,25)}).jpg"
                                         data-holder-rendered="true" style="width: 30px; height: 30px;">
                                    {$user.user_id|substr=0,3}****{$user.user_id|substr=7,4}
                                </td>
                                <td><h5><small></small><span style="color: tomato">￥{$user.total_amount}</span></h5>
                                </td>
                                <td> {$user.subject}</td>
                                <td> {$user.create_time}</td>
                            </tr>

                            {/volist}
                            </tbody>
                        </table>
                    </div>
                    {$list->render()}
                </div>


            </div>
        </div>
    </div>
    <div class="col-xs-12 col-md-3">
        <div class="panel panel-default">
            <div class="panel-heading">赞赏排名</div>
            <div class="panel-body">
                {volist name='total_amount' id='user' key="k"}
                <div class="col-xs-12 col-sm-6 col-md-12"
                     style="padding: 0px;    border-bottom: 1px solid #eee;    margin-bottom: 10px;padding-bottom: 10px; ">


                    <div class="media">
                        <div class="media-left">
                            <a href="#">
                                <img class="media-object img-circle"
                                     src="__STATIC__/images/user/user ({:rand(1,25)}).jpg" data-holder-rendered="true"
                                     style="width: 64px; height: 64px;">
                            </a>
                        </div>
                        <div class="media-body">
                            <small><a href="{:url('index/member/home', ['user_id' => $user.id])}">{$user.user_id|substr=0,3}****{$user.user_id|substr=7,4}</a>
                                NO.<span style="color: #D8582B;font-weight: bold;">{$k}</span></small>
                            <h5><small>赞赏金额：<span
                                    style="color: #D8582B;font-weight: bold;">{$user.total_amountcount}</span></small>
                            </h5>
                            <h5><small>赞赏时间：<span
                                    style="color: #D8582B;font-weight: bold;">{$user.create_time}</span></small></h5>

                        </div>
                    </div>


                </div>


                {/volist}
            </div>
        </div>
    </div>
</div>


{if condition="$list"}

{/if}


{include file="index/footer" /}